package com.example.blog.lang;

/**
 * @author 郑涵文
 **/
public class Result<T> {
    public String code;
    public String msg;
    public T data;

    public void  succ(String msg, T data){
        this.code="200";
        this.msg=msg;
        this.data=data;
    }

    public void  fail(String code,String msg){
        this.code="500";
        this.msg=msg;
        this.data=null;
    }
}
